class Cat:
    def __init__(self, new_name):
        print("初始化方法")
        self.name = new_name

    def eat(self):
        print("%s 爱吃鱼" % self.name)

    def drink(self):
        print("%s 爱喝水" % self.name)


tom = Cat("Tom")
tom.drink()

lazy_cat = Cat("大懒猫")
lazy_cat.drink()
